
#ifndef _MEMBER_BTEXTFORMAT_H_
#define _MEMBER_BTEXTFORMAT_H_

#include <BTextEdit>
#include <BTextFormat>

#define format_member(format)		((member_BTextFormat*)((BTextFormat*)format)->_ptr)

namespace BWE
{
	class member_BTextFormat
	{
	public:
		member_BTextFormat(BTextFormat* handler);
		~member_BTextFormat();

		void setTextEdit(BTextEdit* newEdit);

		inline void event(const BEvent& event)
		{
			boss->event(event);
		}

	public:
		BTextFormat*			boss;
		BTextEdit*				textEdit;
		BString					text;
	};
}

#endif
